package com.example.demo.empity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author: csj
 * @Date: 2024/4/7 16:42
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Valid
public class Person implements Serializable {
    @NotBlank(message = "id不能为空")
    private String pkId;

    private String sysName;  // 姓名

    private int salary; // 薪资

    private String sysAge; // 年龄

    private String phone; //性别

    private String password;  // 地区
}